import { AppConfig } from '../config';

// API配置文件
export const API_BASE_URL = AppConfig.API.BASE_URL;

// 默认请求配置
export const DEFAULT_API_CONFIG = {
  timeout: AppConfig.API.TIMEOUT,
  headers: {
    'Content-Type': 'application/json',
  },
};

// API端点
export const API_ENDPOINTS = {
  // 用户相关
  LOGIN: '/auth/login',
  LOGOUT: '/auth/logout',
  REGISTER: '/auth/register',
  GET_PROFILE: '/users/profile',
  UPDATE_PROFILE: '/users/profile',
};
